<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%  String path = request.getContextPath() ;
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
pageContext.setAttribute("basePath",basePath); 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<base href=" <%=basePath%>"> 
<title>登陆失败</title>
</head>
<body style="text-align: center;margin-top: 300px;">
    <h4>${error}请<a href="/SpringTest/loginPage">点击这里</a>重新登陆!</h4>
</body>
</html>